package cn.accp.fruitWar.baseEntity.entity;

import cn.accp.fruitWar.baseEntity.Fruit;

/**
 * 香蕉类
 * 
 * @author Jiangqs
 * 
 */
public class Banana extends Fruit {
	public Banana() {
		super("霸王蕉", "黄", 0.2);
	}

	public Banana(Banana banana) {
		super(banana);
	}

	public Banana(String name, String color, double weight) {
		super(name, color, weight);
	}

	@Override
	public void fly() {
		System.out.println("香蕉，" + this.getName() + "," + this.getColor()
				+ ",重量" + this.getWeight() + "，飞起来了！");
	}

	@Override
	public void cut() {
		System.out.println("香蕉，" + this.getName() + "," + this.getColor()
				+ ",重量" + this.getWeight() + "，被切开了！");
	}
}
